#ifndef SIMBOLO_H
#define SIMBOLO_H

#include <QChar>
#include <QString>

class Simbolo {
	private:
		QChar* ch;
		int times;
	public:
		Simbolo(const QChar& ch = NULL, const int& times = 0);
		inline bool operator<(const Simbolo& target) const {
			return times < target.times;
		}
		inline bool operator>(const Simbolo& target) const {
			return times < target.times;
		}
		inline QString toString() const {
			return "[" + QString(*ch) + "=" + QString().setNum(times) + "]";
		}
};

#endif
